package com.example.modelfunction.shrio.usermanager.mode;



import com.example.base.model.BaseEntity;
import com.example.base.Cache.CacheKey;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "role")
public class Role extends BaseEntity implements Serializable, CacheKey {

	private static final long serialVersionUID = -3769720880086904596L;

	@Column(name = "name")
	private String name;// 角色名称

	@Column(name = "remark")
	private String remark;//



	public String getName() {

		return this.name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getRemark() {

		return this.remark;
	}

	public void setRemark(String remark) {

		this.remark = remark;
	}

	@Override
	public String cacheKey() {

		return super.getId().toString();
	}
}
